/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Splash;

import javax.swing.JProgressBar;

/**
 *
 * @author <Mejico, Rocío; Mignola, Natalia; Ordoñez, Agustina>
 */
public class HiloProgreso extends Thread {

    JProgressBar progreso;

    public HiloProgreso(JProgressBar progreso1) {
        super();
        this.progreso = progreso1;
    }

    public void run() {
            for (int i = 1; i <= 100; i++) {
                progreso.setValue(i);
                pausa(30);
            }
    }

    public void pausa(int mlSeg) {
        try {
            // pausa para el splash
            Thread.sleep(mlSeg);
        } catch (Exception e) {
        }
    }
}
